package com.hc.model.code02.test5;

/**
 * @version v1.0
 * @ClassName: SingletonTest
 * @Description: 静态内部类构造单例对象测试
 * @Author: HC
 */
public class SingletonTest {

    public static void main(String[] args) {
        Singleton instance1 = Singleton.getInstance();
        Singleton instance2 = Singleton.getInstance();
        System.out.println(instance1 == instance2);

    }
}
